

class File(object):
    def __init__(self, id_archive, id_snapshot, path, name, type, cat, size, extra=False):
        self.id_file = 0
        self.id_archive = id_archive
        self.id_snapshot = id_snapshot
        self.path = path
        self.name = name
        self.type = type
        self.size = size
        self.extra = extra
        self.cat = cat
        self.language = ''
        self.sloc_count = 0
                            
    def __repr__(self):
        return "<File('%s','%s', '%s')>" % (self.path, self.type, self.size)